<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<table class="table table-hover table-bordered">
    <thead>
    <tr>
        <th class="text-center" width="5%">序号</th>
        <th class="text-center" width="15%">提问时间</th>
        <th class="text-center" width="45%">提问内容</th>
        <th class="text-center" width="10%">提问讲师</th>
        <th class="text-center" width="10%">回答状态</th>
        <th class="text-center" width="5%">提问金额/元</th>
        <th class="text-center" width="10%">状态</th>
    </tr>
    </thead>
    <tbody>
        <tr th:if="${#lists.isEmpty(dataMap['list'])}">
            <td colspan="7">
                <div class="noDataTipsBox">
                    <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                </div>
            </td>
        </tr>

        <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="question:${dataMap['list']}">
            <td class="text-center" th:text="${question['id']}"></td>
            <td class="text-center">
                <span class="line">
                    <i class="fa fa-clock-o"></i>
                    <span th:text="${#strings.substring(question['createTime'],0,16)}"></span>
                </span>
            </td>
            <td class="text-center" th:text="${#strings.abbreviate(question['context'],50)}"></td>
            <td class="text-center"  th:text="${question['teacherMap']}==null? '—':${question['teacherMap']['teacherName']}"></td>
            <td class="text-center">
                <span th:text="${question['completeStatus']}==1 ? '已完结':'未完结'"></span>
            </td>
            <td class="text-center" th:text="${question['price']}"></td>
            <td class="text-center" >
                <span th:if="${question['status']}==0">付费问题未支付</span>
                <span th:if="${question['status']}==1">正常</span>
                <span th:if="${question['status']}==2">冻结</span>
                <span th:if="${question['status']}==3">删除</span>
            </td>
        </tr>
    </tbody>
</table>
<!-- 分页，开始 -->
<div data-th-replace="layout/adminPage"></div>
<!-- 分页，结束 -->
